package ${element.packagePath!}.${element.servicePackageName!};

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import ${element.packagePath!}.${element.beanPackageName!}.${element.beanName!}Entity;


/**
* <p>
* ${element.notesTable!} 接口
* </p>
*
* @author ${element.author!}
* @since ${element.date!}
*/
public interface  ${element.beanName!}Service {

    /**
    * 分页查询${element.notesTable!}
    * @param page 分页对象
    * @param ${element.beanCaseName!}
    * @return Page
    */
    public Page<${element.beanName!}Entity> query${element.beanName!}Page(Page page, ${element.beanName!}Entity ${element.beanCaseName!});

    /**
    * 根据id查询${element.notesTable!}
    * @param  id
    * @return Page
    */
    ${element.beanName!}Entity get${element.beanName!}ById(String id);

    /**
    * 保存${element.notesTable!}
    * @param ${element.beanCaseName!} 实体类
    * @return
    */
    public void save${element.beanName!}(${element.beanName!}Entity ${element.beanCaseName!});

    /**
    * 更新${element.notesTable!}
    * @param ${element.beanCaseName!} 实体类
    * @return Page
    */
    public void update${element.beanName!}(${element.beanName!}Entity ${element.beanCaseName!});


    /**
    * 根据id查询${element.notesTable!}
    * @param  id
    * @return Page
    */
    void delete${element.beanName!}(String id);
}
